.class Lcom/brixd/niceapp/activity/BaseDetailActivity$5;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity;->initWidgets()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/BaseDetailActivity;

    .prologue
    .line 473
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$5;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 8
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 476
    iget-object v4, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$5;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v4}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getActivity()Landroid/app/Activity;

    move-result-object v4

    invoke-static {v4}, Lcom/zuiapps/suite/utils/network/NetWorkHelper;->isWifiDataEnable(Landroid/content/Context;)Z

    move-result v3

    .line 477
    .local v3, "isWifiDataAvailable":Z
    const/4 v2, 0x0

    .line 479
    .local v2, "isMobileDataAvailable":Z
    :try_start_b
    iget-object v4, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$5;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v4}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getActivity()Landroid/app/Activity;

    move-result-object v4

    invoke-static {v4}, Lcom/zuiapps/suite/utils/network/NetWorkHelper;->isMobileDataEnable(Landroid/content/Context;)Z
    :try_end_14
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_14} :catch_20

    move-result v2

    .line 483
    :goto_15
    if-nez v3, :cond_25

    if-nez v2, :cond_25

    .line 484
    const v4, 0x7f0c00d9

    invoke-static {v4}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 523
    :goto_1f
    return-void

    .line 480
    :catch_20
    move-exception v1

    .line 481
    .local v1, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_15

    .line 485
    .end local v1    # "e":Ljava/lang/Exception;
    :cond_25
    if-nez v3, :cond_6f

    .line 486
    invoke-static {}, Lcom/brixd/niceapp/util/SettingUtils;->isVideoPlayOnlyWifiEnable()Z

    move-result v4

    if-nez v4, :cond_33

    .line 487
    iget-object v4, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$5;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->goToVideoActivity()V
    invoke-static {v4}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$1400(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V

    goto :goto_1f

    .line 489
    :cond_33
    new-instance v0, Lcom/brixd/niceapp/ui/ConfirmDialog;

    iget-object v4, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$5;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v4}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getActivity()Landroid/app/Activity;

    move-result-object v4

    const/4 v5, 0x1

    invoke-direct {v0, v4, v5}, Lcom/brixd/niceapp/ui/ConfirmDialog;-><init>(Landroid/content/Context;Z)V

    .line 490
    .local v0, "confirmDialog":Lcom/brixd/niceapp/ui/ConfirmDialog;
    const v4, 0x7f0c0026

    invoke-virtual {v0, v4}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setMessage(I)V

    .line 491
    const/4 v4, 0x0

    invoke-virtual {v0, v4}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setCheckboxState(Z)V

    .line 492
    const v4, 0x7f0c0023

    invoke-virtual {v0, v4}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setCheckboxText(I)V

    .line 493
    const v4, 0x7f0c0024

    invoke-virtual {v0, v4}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setCancelButtonText(I)V

    .line 494
    const v4, 0x7f0c0025

    invoke-virtual {v0, v4}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setConfirmButtonText(I)V

    .line 495
    new-instance v4, Lcom/brixd/niceapp/activity/BaseDetailActivity$5$1;

    invoke-direct {v4, p0, v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity$5$1;-><init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$5;Lcom/brixd/niceapp/ui/ConfirmDialog;)V

    invoke-virtual {v0, v4}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setOnCancelClickListener(Landroid/view/View$OnClickListener;)V

    .line 503
    new-instance v4, Lcom/brixd/niceapp/activity/BaseDetailActivity$5$2;

    invoke-direct {v4, p0, v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity$5$2;-><init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$5;Lcom/brixd/niceapp/ui/ConfirmDialog;)V

    invoke-virtual {v0, v4}, Lcom/brixd/niceapp/ui/ConfirmDialog;->setOnConfirmClickListener(Landroid/view/View$OnClickListener;)V

    .line 518
    invoke-virtual {v0}, Lcom/brixd/niceapp/ui/ConfirmDialog;->show()V

    goto :goto_1f

    .line 521
    .end local v0    # "confirmDialog":Lcom/brixd/niceapp/ui/ConfirmDialog;
    :cond_6f
    iget-object v4, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$5;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->goToVideoActivity()V
    invoke-static {v4}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$1400(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V

    goto :goto_1f
.end method
